/**
 * @description: 
 * @param fileName 文件名
 * @param blob 下载的对象
 * @author: Zhu_liangyu
 */
export function downloadFile(fileName: string, blob: Blob) {
    const elink = document.createElement("a");
    elink.download = fileName;
    elink.style.display = "none";
    let binaryData = [];
    binaryData.push(blob);
    elink.href = window.URL.createObjectURL(new Blob(binaryData));
    document.body.appendChild(elink);
    elink.click();
    URL.revokeObjectURL(elink.href); // 释放URL 对象
    document.body.removeChild(elink);
}